Optimal. Leaf size=112 \[ \frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{2 \sqrt [6]{3}}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{2\ 3^{2/3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{4\ 3^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 8, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {1388, 206, 31,
648, 631, 210, 642, 632} \begin {gather*} \frac {\text {ArcTan}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {\text {ArcTan}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{2 \sqrt [6]{3}}+\frac {1}{12} \log \left (x^2-x+1\right )-\frac {\log \left (x^2-\sqrt [3]{3} x+3^{2/3}\right )}{4\ 3^{2/3}}-\frac {1}{6} \log (x+1)+\frac {\log \left (x+\sqrt [3]{3}\right )}{2\ 3^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 631
Rule 632
Rule 642
Rule 648
Rule 1388
Rubi steps
\begin {align*} \int \frac {x^3}{3+4 x^3+x^6} \, dx &=-\left (\frac {1}{2} \int \frac {1}{1+x^3} \, dx\right )+\frac {3}{2} \int \frac {1}{3+x^3} \, dx\\ &=-\left (\frac {1}{6} \int \frac {1}{1+x} \, dx\right )-\frac {1}{6} \int \frac {2-x}{1-x+x^2} \, dx+\frac {\int \frac {1}{\sqrt [3]{3}+x} \, dx}{2\ 3^{2/3}}+\frac {\int \frac {2 \sqrt [3]{3}-x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx}{2\ 3^{2/3}}\\ &=-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{2\ 3^{2/3}}+\frac {1}{12} \int \frac {-1+2 x}{1-x+x^2} \, dx-\frac {1}{4} \int \frac {1}{1-x+x^2} \, dx-\frac {\int \frac {-\sqrt [3]{3}+2 x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx}{4\ 3^{2/3}}+\frac {1}{4} 3^{2/3} \int \frac {1}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx\\ &=-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{2\ 3^{2/3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{4\ 3^{2/3}}+\frac {1}{2} \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 x\right )+\frac {1}{2} \sqrt [3]{3} \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 x}{\sqrt [3]{3}}\right )\\ &=\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )}{2 \sqrt [6]{3}}-\frac {1}{6} \log (1+x)+\frac {\log \left (\sqrt [3]{3}+x\right )}{2\ 3^{2/3}}+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {\log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )}{4\ 3^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 106, normalized size = 0.95 \begin {gather*} \frac {1}{12} \left (-2 3^{5/6} \tan ^{-1}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )-2 \sqrt {3} \tan ^{-1}\left (\frac {-1+2 x}{\sqrt {3}}\right )-2 \log (1+x)+2 \sqrt [3]{3} \log \left (3+3^{2/3} x\right )+\log \left (1-x+x^2\right )-\sqrt [3]{3} \log \left (3-3^{2/3} x+\sqrt [3]{3} x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 84, normalized size = 0.75
method | result | size |
risch | \(\frac {\left (\munderset {\textit {\_R} =\RootOf \left (9 \textit {\_Z}^{3}-1\right )}{\sum }\textit {\_R} \ln \left (x +3 \textit {\_R} \right )\right )}{2}-\frac {\ln \left (1+x \right )}{6}+\frac {\ln \left (x^{2}-x +1\right )}{12}-\frac {\sqrt {3}\, \arctan \left (\frac {2 \left (x -\frac {1}{2}\right ) \sqrt {3}}{3}\right )}{6}\) | \(54\) |
default | \(\frac {3^{\frac {1}{3}} \ln \left (3^{\frac {1}{3}}+x \right )}{6}-\frac {3^{\frac {1}{3}} \ln \left (3^{\frac {2}{3}}-3^{\frac {1}{3}} x +x^{2}\right )}{12}+\frac {3^{\frac {5}{6}} \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 \,3^{\frac {2}{3}} x}{3}-1\right )}{3}\right )}{6}-\frac {\ln \left (1+x \right )}{6}+\frac {\ln \left (x^{2}-x +1\right )}{12}-\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{6}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 84, normalized size = 0.75 \begin {gather*} \frac {1}{6} \cdot 3^{\frac {5}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {1}{12} \cdot 3^{\frac {1}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {1}{6} \cdot 3^{\frac {1}{3}} \log \left (x + 3^{\frac {1}{3}}\right ) + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 102, normalized size = 0.91 \begin {gather*} \frac {1}{6} \cdot 9^{\frac {1}{6}} \sqrt {3} \arctan \left (\frac {1}{27} \cdot 9^{\frac {1}{6}} {\left (2 \cdot 9^{\frac {2}{3}} \sqrt {3} x - 3 \cdot 9^{\frac {1}{3}} \sqrt {3}\right )}\right ) - \frac {1}{36} \cdot 9^{\frac {2}{3}} \log \left (3 \, x^{2} - 9^{\frac {2}{3}} x + 3 \cdot 9^{\frac {1}{3}}\right ) + \frac {1}{18} \cdot 9^{\frac {2}{3}} \log \left (3 \, x + 9^{\frac {2}{3}}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.30, size = 110, normalized size = 0.98 \begin {gather*} - \frac {\log {\left (x + 1 \right )}}{6} + \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right ) \log {\left (x - \frac {1}{4} + 648 \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right )^{4} + \frac {\sqrt {3} i}{4} \right )} + \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right ) \log {\left (x - \frac {1}{4} + 648 \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right )^{4} - \frac {\sqrt {3} i}{4} \right )} + \operatorname {RootSum} {\left (72 t^{3} - 1, \left ( t \mapsto t \log {\left (648 t^{4} - 3 t + x \right )} \right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.18, size = 86, normalized size = 0.77 \begin {gather*} \frac {1}{6} \cdot 3^{\frac {5}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {1}{12} \cdot 3^{\frac {1}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {1}{6} \cdot 3^{\frac {1}{3}} \log \left ({\left | x + 3^{\frac {1}{3}} \right |}\right ) + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left ({\left | x + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.36, size = 113, normalized size = 1.01 \begin {gather*} \frac {3^{1/3}\,\ln \left (x+3^{1/3}\right )}{6}-\frac {\ln \left (x+1\right )}{6}+\ln \left (x-\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )-\ln \left (x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )-\ln \left (x-\frac {3^{1/3}}{2}-\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {3^{1/3}}{12}+\frac {3^{5/6}\,1{}\mathrm {i}}{12}\right )-\ln \left (x-\frac {3^{1/3}}{2}+\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {3^{1/3}}{12}-\frac {3^{5/6}\,1{}\mathrm {i}}{12}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________